import request from '@/utils/request'

// 查询教师列表
export function listTextbook(query) {
  return request({
    url: '/system/textbook/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getTextbook(textbookId) {
  return request({
    url: '/system/textbook/' + textbookId,
    method: 'get'
  })
}

// 新增
export function addTextbook(data) {
  return request({
    url: '/system/textbook',
    method: 'post',
    data: data
  })
}

// 修改
export function updateTextbook(data) {
  return request({
    url: '/system/textbook',
    method: 'put',
    data: data
  })
}

// 删除
export function delTextbook(textbookId) {
  return request({
    url: '/system/textbook/' + textbookId,
    method: 'delete'
  })
}

// 批量删除
export function deleteTextbooks(data) {
  return request({
    url: '/system/textbook/deleteTextbooks',
    method: 'delete',
    params: data
  })
}
